package com.sprite.support.wechat.service;

import com.sprite.support.wechat.bean.req.ReqBaseMessageBean;
import com.sprite.support.wechat.bean.resp.RespBaseMessageBean;

public interface WechatMessageHandler<T extends ReqBaseMessageBean> {

	/**
	 * 消息类型
	 * @return
	 */
	String msgType();

	/**
	 * 消息实体类
	 * @return
	 */
	Class<T> msgClass();


	/**
	 * 处理消息
	 * @param message
	 * @return
	 */
	RespBaseMessageBean handle(T message);
}
